//
//  LCCountdownView.h
//  计时器
//
//  Created by admin on 17/1/2.
//  Copyright © 2017年 DDHW. All rights reserved.
//

#import <UIKit/UIKit.h>

static const int kDefaultCountdownFrom = 1;

@class LCCountdownView;

@protocol LCCountdownViewDelegate <NSObject>

@required

- (void) countdownFinished:(LCCountdownView *)view;

@end

@interface LCCountdownView : UIView

@property (nonatomic) int countdownFrom;
@property (nonatomic) NSString* finishText;

// appearance settings
@property (nonatomic) UIColor* countdownColor;
@property (nonatomic) NSString* fontName;
@property (nonatomic) float backgroundAlpha;

@property (nonatomic, weak) id<LCCountdownViewDelegate> delegate;

- (void) updateAppearance;
- (void) start;
- (void) stop;
@end
